package com.bruce.pattern.behavioral.visitor.demo2;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by bruce on 2018/11/11 19:54
 */
@Setter
@Getter
public class CodingCourse extends Course{

    private int price;

    public CodingCourse(String name,int price) {
        super(name);
        this.price = price;
    }

    @Override
    public void accept(IVisitor visitor) {
        visitor.visit(this);
    }
}
